/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fPersonIntegralIncome', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    userid: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'userid'
    },
    createTime: {
      type: DataTypes.DATEONLY,
      allowNull: true,
      field: 'create_time'
    },
    integral: {
      type: "DOUBLE(11,0)",
      allowNull: true,
      field: 'integral'
    },
    incomType: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0',
      field: 'incom_type'
    }
  }, {
    tableName: 'f_person_integral_income'
  });
};
